<?php
/**
 * @var $data Training
 */
?>
<div class="item">
    <?php if($data->image_id): ?><div class="img"><img src="<?php echo Yii::app()->homeUrl . $data->image->path; ?>"></div><?php endif?>
    <div class="title">
        <?php echo CHtml::link(CHtml::encode($data->name), $this->createUrl('view', array('vid' => $data->id, 'name' => Yii::app()->func->safeTitle($data->name)))); ?>
    </div>
    <abbr class="date">Ngày đăng: <?php echo date('d/m/Y',$data->create_time); ?></abbr>
<!--    <div class="date">--><?php //echo date('d/m/Y',$data->create_time); ?><!--</div>-->
    <div class="body">
        <?php echo $data->short_description;?>
    </div>
</div>